import request from "@/utils/request";
//登录接口
export function login(loginInfo) {
    return request({
        method: "post",
        url: '/frontend/sso/login',
        data: loginInfo
    })
}
//查询个人信息
export function getMyUserInfo() {
    return request({
        method: "POST",
        url: '/frontend/my/info/',
    })
}
//注册接口
export function register(data) {
    return request({
        method: "POST",
        url: '/frontend/sso/register',
        data: data
    })
}

/**
 * @description 退出登录接口
 * @data {name:String,password:String}
 */
export function logout(data) {
    return request({
        method: "POST",
        url: '/frontend/sso/logout',
        data: data
    })
}
